import funFetch from '../util/funFetch';


const getLotteryInfoById = function(params) {
	return funFetch.post('lottery/getLotteryInfoById',
		params
	)
};
const getLotteryInfoPage = function(params) {
	return funFetch.post('lottery/getLotteryInfoPage',
		params
	)
};



const storeUserPrize = function(params) {
	return funFetch.post('prize/storeUserPrize',
		params
	)
};
const storeHelpUserPrize = function(params) {
	return funFetch.post('prize/storeHelpUserPrize',
		params
	)
};

const getUserPrizeUserId = function(params) {
	return funFetch.post('prize/getUserPrizeUserId',
		params
	)
};
const getUserPrizeUserInfo = function(params) {
	return funFetch.post('prize/getUserPrizeUserInfo',
		params
	)
};
const getUserPrizeNum = function(params) {
	return funFetch.post('prize/getUserPrizeNum',
		params
	)
};
const storeUserPrizeAddress = function(params) {
	return funFetch.post('prizeLog/storeUserPrizeAddress',
		params
	)
};
const getPrizeGoodsPage = function(params) {
	return funFetch.post('prizeLog/getPrizeGoodsPage',
		params
	)
};
const getUserPrizeLogPageReq = function(params) {
	return funFetch.post('prizeLog/getUserPrizeLogPageReq',
		params
	)
};
const storeUserAddress = function(params) {
	return funFetch.post('address/storeUserAddress',
		params
	)
};
const getUserAddressByPage = function(params) {
	return funFetch.post('address/getUserAddressByPage',
		params
	)
};
const storeUserFeedback = function(params) {
	return funFetch.post('feedback/storeUserFeedback',
		params
	)
};
const getRedisKey = function(params) {
	return funFetch.post('redis/getKey',
		params
	)
};

export {
	getLotteryInfoById,
	getLotteryInfoPage,
	storeUserPrize,
	storeHelpUserPrize,
	getUserPrizeUserId,
	getUserPrizeUserInfo,
	getUserPrizeNum,
	storeUserPrizeAddress,
	getPrizeGoodsPage,
	getUserPrizeLogPageReq,
	storeUserAddress,
	getUserAddressByPage,
	storeUserFeedback,
	getRedisKey
};
